package cn.agiledata.bank.netReturn.exception;

import com.vnv.infrastructure.exception.IPBAppException;

public class NetReturnException extends IPBAppException {

	private String errorCode;
	
	public static final NetReturnException NUMBER_NOT_EQUAL = new NetReturnException("");
	
	public static final NetReturnException AMOUNT_ILLEGAL = new NetReturnException("");
	
	public NetReturnException(String code) {
		super(code);
	}

	public NetReturnException(String code, Object arg) {
        super(code, arg);
    }

    public NetReturnException(String code, Object arg, String errorCode) {
        super(code, arg);
        this.errorCode = errorCode;
    }

    public NetReturnException(String code, Object[] args, String errorCode) {
        super(code, args);
        this.errorCode = errorCode;
    }

    public NetReturnException(String code, Object[] args, String errorCode,
            String defaultMessage) {
        super(code, args, defaultMessage);
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return this.errorCode;
    }

}
